from django.conf.urls import url

from rest_api.views import *

urlpatterns = [
    url(r'^postReleaseMessage/$', PostReleaseMessage.as_view(), name='发布帖子的通用接口'),
    url(r'^getReleaseMessage/$', ReleaseMessageList.as_view(), name='获取用户所有帖子'),
    url(r'^delReleaseMessage/(?P<pk>[0-9]*)/$', DelReleaseMessage.as_view(), name='删除帖子'),
    url(r'^getAffairByUser/$', GetAffairByUser.as_view()),
    url(r'^getAllAffairPage/$', GetAllAffairPage.as_view()),
    url(r'^getRecommendAffairPage/$', GetRecommendAffairPage.as_view()),
    url(r'^postThumbsMessage/(?P<affair>[0-9]*)/$', PostThumbsMessage.as_view()),
    url(r'^getCommentByAffair/(?P<PK>[0-9]*)/$', GetCommentByAffair.as_view()),
    url(r'^getCommentByFirstLevel/(?P<PK>[0-9]*)/$', GetCommentByFirstLevel.as_view()),
    url(r'^postAffairDetail/(?P<affair>[0-9]*)/$', PostAffairDetail.as_view()),
    url(r'^createCommentByAffair/$', CreateCommentByAffair.as_view()),

]
